const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {

    proxy: {
      '/api/3000': {
        target: 'http://127.0.0.1:3000',
        pathRewrite: {
          // 重写路径 /api/user=>/user
          '^/api/3000': ''
        }
      },
      '/api/3001': {
        target: 'http://127.0.0.1:3001',
        pathRewrite: {
          '^/api/3001': ''
        }
      },
    }
  }
});
